﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace _0712502_0712504_DesignPatternGame
{
    static public class GameResourceContainer
    {
        private static MySoundManager _soundManager;

        public static MySoundManager SoundManager
        {
            get { return GameResourceContainer._soundManager; }
            set { GameResourceContainer._soundManager = value; }
        }

        private static MyImageManager _imageManager;

        public static MyImageManager ImageManager
        {
            get { return GameResourceContainer._imageManager; }
            set { GameResourceContainer._imageManager = value; }
        }


        static MyFontManager _fontManager;

        public static MyFontManager FontManager
        {
            get { return GameResourceContainer._fontManager; }
            set { GameResourceContainer._fontManager = value; }
        }


        public static void InitGameResourceContainer(ref MyImageManager imageManager,
            ref MySoundManager soundManager, ref MyFontManager fontManager)
        {
            _soundManager = soundManager;
            _imageManager = imageManager;
            _fontManager = fontManager;
        }
    }
}
